package com.bit.demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: happyiu
 * Date: 2021-11-20
 * Time: 11:51
 */
public class Animal {
    public String name;

    public Animal (String name){
        this.name = name;
    }

    public void eat(String food){
        System.out.println(name+"爱吃"+food);
    }

}

